package com.arm.service;


import com.arm.module.Order;
import com.arm.module.OrderItem;

import java.util.List;
import java.util.Map;

/**
 * Created by Baggio on 2017-11-22.
 */
public interface OrderItemService {
    /**
     * 创建/添加订单项目
     */
    OrderItem createOrderItem(Long productEntityId, Order order, Integer amount);
    OrderItem getOrderItemByOrderItemId(Long orderItemId);
    /**
     * 取消订单项目
     */
    Boolean cancelOrderItem(Long orderItemId);
    Boolean modifyOrderItemStatus(Long orderItemId, Byte status);
    Boolean completeOrderItem(Long orderItemId);
    Boolean modifyOrderItem(OrderItem orderItem);
    List<OrderItem> selectOrderItemList(Map<String, String> map);
    int updateOrderItemStatus(Map<String, String> map);
}
